<template>
  <div>
    <el-input placeholder="输入手机号" v-model="mobile"></el-input>
    <el-input placeholder="密码" v-model="password"></el-input>
    <el-button @click="tj">提交</el-button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            mobile:"",
            password:""

        }
    },
    methods:{
        tj(){
            var data = {'password':this.password,'mobile':this.mobile,'uid':this.$route.query.uid,'token':this.$route.query.token}
            this.axios.post("/sflogin",data).then(res =>{
                localStorage.setItem("token",res.data.token)
                localStorage.setItem("userid",res.data.userid)
                localStorage.setItem("mobile",res.data.mobile)
                this.$router.push("/left")
            })
        }
    }

}
</script>

<style>

</style>